package com.tubang.common.util;

/**
 * @ClassName MsgCode 
 * @Description 通用消息码
 * @author wsl 
 * @date 2017年12月23日 下午3:33:02
 */
public class MsgCode {
	
	/*
	 * 请求成功
	 */
	public static final int SUCCESS = 200;
	public static final String DEFAULT_SUCCESS_MSG = "成功";
	
	/**
	 * 服务器异常
	 */
	public static final int SERVER_ERROR = 500;
	public static final String SERVER_ERROR_MSG = "服务器异常,请您稍后再试";
	
	/**
	 * 请求失败
	 */
	public static final int ERROR = 0;
	public static final String DEFAULT_ERROR_MSG = "失败";

	/**
	 * 用户手机号已经注册
	 */
	public static final int USER_MOBILE_IS_REGISTER = 10101;
	public static final String USER_MOBILE_IS_REGISTER_DESC = "用户手机号已经注册";

	/**
	 * 地址信息有误，请重新注册
	 */
	public static final int ADDRESS_FAIL_IS_REGISTER = 10102;
	public static final String ADDRESS_FAIL_IS_REGISTER_DESC = "地址信息有误，请重新注册";

	/**
	 * 公司信息有误，请重新注册
	 */
	public static final int COMPANY_FAIL_IS_REGISTER = 10103;
	public static final String COMPANY_FAIL_IS_REGISTER_DESC = "公司信息有误，请重新注册";

	/**
	 * 用户验证码错误
	 */
	public static final int USER_CODE_IS_ERROR = 10104;
	public static final String USER_CODE_IS_ERROR_DESC = "验证码错误";

	/**
	 * 地址信息有误
	 */
	public static final int ADDRESS_FAIL_IS_NOT_EXIST = 10105;
	public static final String ADDRESS_FAIL_IS_NOT_EXIST_DESC = "id在数据库中不存在";
	
	/**
	 * 用户登录账号错误
	 */
	public static final int USER_ACCOUNT_IS_WRONG = 10106;
	public static final String USER_ACCOUNT_IS_WRONG_DESC = "登录账号错误，请重新输入";
	
	/**
	 * 用户密码错误
	 */
	public static final int USER_PASSWOR_IS_WRONG = 10107;
	public static final String USER_PASSWOR_IS_WRONG_DESC = "登录密码错误，请重新输入";

	/**
	 * 用户登录账号错误
	 */
	public static final int USER_ACCOUNT_IS_LOCK = 10108;
	public static final String USER_ACCOUNT_IS_LOCK_DESC = "登录账号被锁定，请联系系统管理员";

	/**
	 * 用户验证码错误
	 */
	public static final int USER_CODE_IS_EMPTY = 10110;
	public static final String USER_CODE_IS_EMPTY_DESC = "验证码为空，请您输入验证码";
	
	/**
	 * 用户未登录
	 */
	public static final int USER_IS_NOT_LOGIN = 10113;
	public static final String USER_IS_NOT_LOGIN_DESC = "用户未登录";

	/**
	 * 订单数据异常
	 */
	public static final int ORDER_DATA_ERROR = 10114;
	public static final String ORDER_DATA_ERROR_DESC = "订单数据异常";
	/**
	 * 请上传提货单
	 */
	public static final int DELIVERY_ORDER_URL_NOT_EXIST = 10115;
	public static final String DELIVERY_ORDER_URL_NOT_EXIST_DESC = "请先上传提货单";
	/**
	 * 请上传回执单
	 */
	public static final int RECEIPT_URL_NOT_EXIST = 10116;
	public static final String RECEIPT_URL_NOT_EXIST_DESC = "请先上传回执单";
	/**
	 * 请上传回执单
	 */
	public static final int ORDER_STATUS_NOT_DESIGNATE = 10117;
	public static final String ORDER_STATUS_NOT_DESIGNATE_DESC = "物流公司运单未指派";
	
	/**
	 * 该手机号未注册，请您先注册
	 */
	public static final int USER_MOBILE_IS_NOT_REGISTER = 10118;
	public static final String USER_MOBILE_IS_NOT_REGISTER_DESC = "该手机号未注册，请您先注册";
	/**
	 * 短信验证码输入不正确，清重新输入
	 */
	public static final int USER_MOBILE_SMS_CAPTCHA = 10119;
	public static final String USER_MOBILE_SMS_CAPTCHA_DESC = "短信验证码输入不正确，清重新输入";
	
	/**
	 * 两次密码输入不相同，清重新输入
	 */
	public static final int PASSWORD_IS_NOT_SAME = 10120;
	public static final String PASSWORD_IS_NOT_SAME_DESC = "两次密码输入不相同，清重新输入";
	
	/**
	 * 用户或公司不存在
	 */
	public static final int USERORCOMPANY_IS_NOT_EXIST= 10121;
	public static final String USERORCOMPANY_IS_NOT_EXIST_DESC = "用户或公司不存在";
	
}
